package br.com.sysprova.view;

import java.awt.Frame;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.border.EmptyBorder;

public class TelaInicial extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;
	private UIManager.LookAndFeelInfo looks[];
	/**
	 * Launch the application.
	 */

	/**
	 * Create the frame.
	 */
	public JPanel getContentPane(){
		return contentPane;
	}
	
	public TelaInicial(JPanel p) {
		
		setUndecorated(true);
		looks = UIManager.getInstalledLookAndFeels();

		try {
			UIManager.setLookAndFeel(looks[3].getClassName());
			SwingUtilities.updateComponentTreeUI(this);

		} catch (Exception e) {
			e.printStackTrace();
		}
		
		setTitle("SysProva");
		setName("frmPrincipal");
		setExtendedState(Frame.MAXIMIZED_BOTH);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);		
		contentPane =p;
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		setVisible(true);
		
	}

}
